package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;
import com.ruitu.router_module.bean.mine.Address;

import java.util.List;

import rx.Observable;

public interface AddressListContract {
    interface Model extends BaseModel {
        Observable<BaseResult<List<Address>>> getMineAddress(String accountId);
    }

    interface View extends BaseView {
        void setData(List<Address> addresses);

        void setFail();
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getMineAddress(String accountId);

    }
}
